GoXam for WPF v3
FindElementUpFrom(FrameworkElement,Func<FrameworkElement,Nullable<Boolean>>,Predicate<FrameworkElement>) Method
Northwoods.GoXam.Tool Namespace > DiagramTool Class > FindElementUpFrom Method : FindElementUpFrom(FrameworkElement,Func<FrameworkElement,Nullable<Boolean>>,Predicate<FrameworkElement>) Method
a FrameworkElement
When this predicate and valid are both true, return that element, When this predicate is false, return null. Otherwise continue up the parent chain. Stop going up the visual parent chain when reaching the Northwoods.GoXam.Part.
a predicate that must be true for an element for it to be returned by this method
Search up the chain of visual parent elements starting with the given element to find one that has pred true and valid true.
Syntax

Parameters

elt
a FrameworkElement
pred
When this predicate and valid are both true, return that element, When this predicate is false, return null. Otherwise continue up the parent chain. Stop going up the visual parent chain when reaching the Northwoods.GoXam.Part.
valid
a predicate that must be true for an element for it to be returned by this method
See Also

Reference

DiagramTool Class
DiagramTool Members
Overload List